package njust.edu.entity;

public class User {
    private Long id;  //用户id
    private String name;//用户名称
    private String password;//用户密码
    private Integer type;//用户类别
    private String tell;//用户电话
    private Role role;//用户角色

    public User(Long id, String name, String password, Integer type, String tell) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.type = type;
        this.tell = tell;
    }

    public User() {
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTell() {
        return tell;
    }

    public void setTell(String tell) {
        this.tell = tell;
    }

    @Override
    public String toString() {
        return "User [id=" + id + ", name=" + name + ", password=" + password
                + ", type=" + type + ", tell=" + tell + ", role=" + role + "]";
    }

}
